<template>
	<view class="p-t-30">
		<block v-for="(item,i) in messagesList" :key="i">
		<view class="font-24 textC grey">{{$util.timeStampTurnTime(item.createtime)}}</view>
		<view class="modelBox" @click="$util.redirectTo('/otherpages/giveNoticeDetali/giveNoticeDetali',{id:item.id})">
			<view class="font-30 font-weight">{{item.title}}</view>
			<view class="font-24 grey m-t-10">{{item.content}}</view>
			<view class="flex_b bortBox p-t-20 m-t-20">
				<view class="font-24 f-t">查看详情</view>
				<view class="iconfont icon-xiangyoujiantou grey" style="font-size: 24rpx;"></view>
			</view>
		</view>
		</block>
		
		<view class="bottom-mar"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messagesList:[]
			};
		},
		onLoad() {
			this.getMessagesList()
		},
		methods:{
			getMessagesList() {
				this.$api.sendRequest({
					url:'/api/user/messagesList',
					data:{
						page:1,
						limit:100000
					},success:res=>{
						this.messagesList = res.data.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.bortBox {
		border-top: 1rpx solid #f5f5f5;
	}
</style>
